package cn.findviewbydream.exception;

/**********************************
 * 工程：cn.findviewbydream.exception
 * 作者：白雨濃 evil
 * 时间：17-4-17 下午3:50
 * 邮箱：evilbai@foxmail.com
 * 内容：基础异常类
 **********************************/
public class BaseException extends RuntimeException
{
    private int code;

    public BaseException(int code, String message)
    {
        super(message);
        this.code = code;
    }

    public BaseException(int code, String message, Throwable cause)
    {
        super(message, cause);
        this.code = code;
    }

    public int getCode()
    {
        return code;
    }
}
